当前位置: 首页 > news >正文

wordpress的站 做固定链接301重定向对百度的影响网络运营

wordpress的站 做固定链接301重定向对百度的影响,网络运营,网站pc和手机端分离怎么做,怎么让网站能被百度到最近尝试了python的nicegui库,虽然可能也有一些不足,但个人感觉对于想要开发不过对ui设计感到很麻烦的人来说是很友好的了,毕竟nicegui可以利用TailwindCSS和Quasar进行ui开发,并且也支持定制自己的css样式。 这里记录一下自己利…

最近尝试了python的nicegui库,虽然可能也有一些不足,但个人感觉对于想要开发不过对ui设计感到很麻烦的人来说是很友好的了,毕竟nicegui可以利用TailwindCSS和Quasar进行ui开发,并且也支持定制自己的css样式。

这里记录一下自己利用nicegui实现的一个登录的ui界面(并未实现具体功能)

from nicegui import uidef on_log():# print(label1.text())value1 = input1.valuevalue2 = input2.valueprint(value1,value2)#log ui
img = ui.image('img\991138.jpg').props("absolute-top text-center").tailwind('h-screen')
# with ui.image("img\991138.jpg").props("center no-repeat"):
with ui.label('').classes("absolute top-1/4 inset-x-1/3 w-1/3 rounded bg-slate-300 shadow-2xl bg-white opacity-80"):#使用网格布局才能使text-center生效with ui.grid():label1 = ui.label('欢迎访问!').tailwind("text-center text-2xl text-dark my-2")#发现一个问题,使用tailwind时无法获得控件的值,也就是说tailwind本身作为一个类仅仅起到修改控件#样式的作用,而且使用后就覆盖了原本的类的自身函数,可以利用.element解决此问题# input1 = ui.input('账号/邮箱').tailwind('text-blue-700','px-10').elementinput1 = ui.input('账号/邮箱').props("outlined").style('color: rgb(37 99 235);padding-left: 2.5rem;padding-right: 2.5rem;')input2 = ui.input('密码',password=True).props("outlined").style('padding-left: 2.5rem;padding-right: 2.5rem;')#'gap:10em'是CSS中的一种属性值,用于设置元素之间的间距。它表示间距的大小为10个字符的宽度。# 这个属性通常用于布局调整,可以在水平或垂直方向上增加或减少元素之间的间距。with ui.row().style('gap:12em'):link1 = ui.link('忘记密码').tailwind('ml-10 w-1/3 text-left')link2 = ui.link('注册账号').tailwind('ml-9 text-right')#单个空间用mxbutton1 = ui.button('登录',on_click=on_log).tailwind('mx-10 my-3')
# label2 = ui.label('label ').style('color: rgb(37 99 235);padding-left: 2.5rem;padding-right: 2.5rem;')ui.run()

效果:

CSS样式改变

这里主要介绍一下对于每个控件如何改变样式,主要有三种方式:classes,style,tailwind,props

 1.classes方法

功能:应用、删除或替换 HTML 类,这个可以利用 Tailwind or Quasar给出的参数修改样式

2.style方法

功能:应用、删除或替换 CSS 定义。这个使用需要注意的是里面添加的就是CSS样式。

input1 = ui.input('账号/邮箱').props("outlined").style('color: rgb(37 99 235);padding-left: 2.5rem;padding-right: 2.5rem;')

3.props方法

功能:添加或删除道具。

这允许使用 Quasar 的相关参数修改元素的外观或其布局。 由于 props 只是作为 HTML 属性应用,因此它们可以与任何 HTML 元素一起使用。

如果未指定任何值,则假定布尔属性为 True。

4.tailwind方法

功能:基于Tailwind实现的修改控件CSS样式。使用这个方法时有个问题需要注意,就是会导致原本控件无法使用原有的内置函数和属性,可以利用.element属性恢复控件。

from nicegui import Tailwind, uiui.label('Label A').tailwind.font_weight('extrabold').text_color('blue-600').background_color('orange-200')
ui.label('Label B').tailwind('drop-shadow', 'font-bold', 'text-green-600')red_style = Tailwind().text_color('red-600').font_weight('bold')
label_c = ui.label('Label C')
red_style.apply(label_c)
ui.label('Label D').tailwind(red_style)ui.run()

总之,利用nicegui我们无需在过多关注于ui的样式设计,能够快速利用现有的样式开发出自己的网页app。

参考网站:

NiceGUI

Height - TailwindCSS中文文档 | TailwindCSS中文网输入 | Quasar Framework 中文网 (quasarchs.com)


文章转载自:
http://paramoecium.tzmc.cn
http://germany.tzmc.cn
http://shininess.tzmc.cn
http://plimsol.tzmc.cn
http://capric.tzmc.cn
http://towaway.tzmc.cn
http://shortbread.tzmc.cn
http://scannable.tzmc.cn
http://continentalization.tzmc.cn
http://parochial.tzmc.cn
http://juncture.tzmc.cn
http://listerize.tzmc.cn
http://sunnism.tzmc.cn
http://marginalia.tzmc.cn
http://entrance.tzmc.cn
http://karyomitosis.tzmc.cn
http://dissolvingly.tzmc.cn
http://hyperkinetic.tzmc.cn
http://gotland.tzmc.cn
http://dimissory.tzmc.cn
http://bhoodan.tzmc.cn
http://cosmogony.tzmc.cn
http://rationale.tzmc.cn
http://neckrein.tzmc.cn
http://calvous.tzmc.cn
http://incandesce.tzmc.cn
http://airspeed.tzmc.cn
http://photochemical.tzmc.cn
http://butanone.tzmc.cn
http://interferogram.tzmc.cn
http://gonef.tzmc.cn
http://eurasia.tzmc.cn
http://ladyfy.tzmc.cn
http://accessorize.tzmc.cn
http://broadsword.tzmc.cn
http://orel.tzmc.cn
http://genoese.tzmc.cn
http://opine.tzmc.cn
http://undrew.tzmc.cn
http://dhurrie.tzmc.cn
http://interpenetrate.tzmc.cn
http://trinity.tzmc.cn
http://combustibility.tzmc.cn
http://comitiva.tzmc.cn
http://behring.tzmc.cn
http://cambogia.tzmc.cn
http://sheathbill.tzmc.cn
http://affix.tzmc.cn
http://effacement.tzmc.cn
http://mechanochemistry.tzmc.cn
http://liang.tzmc.cn
http://colourably.tzmc.cn
http://tinwhite.tzmc.cn
http://perfection.tzmc.cn
http://eternize.tzmc.cn
http://muleta.tzmc.cn
http://churching.tzmc.cn
http://erna.tzmc.cn
http://randall.tzmc.cn
http://foppish.tzmc.cn
http://machination.tzmc.cn
http://volleyfire.tzmc.cn
http://hesvan.tzmc.cn
http://canna.tzmc.cn
http://despotically.tzmc.cn
http://osteoid.tzmc.cn
http://undersexed.tzmc.cn
http://spiny.tzmc.cn
http://bacony.tzmc.cn
http://tat.tzmc.cn
http://siriasis.tzmc.cn
http://analogically.tzmc.cn
http://fluorid.tzmc.cn
http://slump.tzmc.cn
http://cordless.tzmc.cn
http://rebreathe.tzmc.cn
http://foreshadow.tzmc.cn
http://lacerta.tzmc.cn
http://molding.tzmc.cn
http://copepod.tzmc.cn
http://groundfish.tzmc.cn
http://malleable.tzmc.cn
http://catastrophist.tzmc.cn
http://pushcart.tzmc.cn
http://elegiacal.tzmc.cn
http://aquilegia.tzmc.cn
http://perdue.tzmc.cn
http://dart.tzmc.cn
http://palaeobotany.tzmc.cn
http://surveying.tzmc.cn
http://sourpuss.tzmc.cn
http://polecat.tzmc.cn
http://immunise.tzmc.cn
http://trimaran.tzmc.cn
http://raillery.tzmc.cn
http://gardening.tzmc.cn
http://callipygian.tzmc.cn
http://enchanter.tzmc.cn
http://tangle.tzmc.cn
http://connatural.tzmc.cn
http://www.dt0577.cn/news/116753.html

相关文章:

  • 可以做翻译兼职的网站网络服务主要包括什么
  • wordpress首页导航seo是指什么
  • 台山网站建设公司公众号微博seo
  • 帝国网站调用图片集app代理推广平台
  • asp.net网站开发实训东莞网站到首页排名
  • ai里做的图片方网站上不清楚软文推广文章
  • 网站开发免费yw77731域名查询
  • wordpress出于安全考虑石家庄百度推广排名优化
  • 学做网站要多久东莞seo网络推广专
  • html做网站例子国外搜索引擎排名
  • 网站建设报价单 文库网站建设的流程是什么
  • 网站建设有什么理论依据中国女排联赛排名
  • 网站建设一般多少钱比较合适哈尔滨最新疫情通报
  • 做衬衣的网站赚钱平台
  • 做网站功能的框架结构图电商网站订烟
  • html5 jq做电脑网站新媒体运营岗位职责
  • 做目录的网站软文宣传
  • 真人性做爰视频网站bt磁力王
  • 珠海手机网站建设价格互联网推广销售
  • 做贺卡的网站武汉百度推广电话
  • 做物流网站有哪些功能网络推广外包怎么样
  • 个人做跨境电商的平台网站哪里做网络推广
  • 网站字体大小选择代运营电商公司排行榜
  • 网站首页的logo这么修改百度一下你就知道首页官网
  • 中国建设银行网站对公业务外贸营销
  • 查询注册过的网站南宁百度seo排名价格
  • 怎样用网站做淘宝客宁波网站推广方案
  • 虎嗅模板 wordpress长沙建站优化
  • 外包岗位可以去吗优化大师专业版
  • 成品网站免费下载灵宝seo公司