如何在类中设置动态高度:在使用jquery之前?(how to set dynamic height in class:before using jquery?)
如何设置屏幕高度到我的班级:之前? 我厌倦了使用jquery这样做。 这是我的代码:
var login_height = $(window).height(); $(".login_left_box:before").css('border-bottom-width' , login_height+"px");
在这里我设置动态border-bottom-width: 1024px在这个类中(设置1024px动态)所以我怎么能?
.login_left_box:before { content: ""; width: 0px; height: 0px; border-bottom: 750px solid #fff; border-left: 100px solid transparent; position: absolute; right: 0; top: 0px; background-image: url(../images/common/bg.png); background-repeat: no-repeat; background-size: cover; border-bottom-width: 1024px; }
how to set screen height to my class :before ? i tired to do this using jquery. here is my code:
var login_height = $(window).height(); $(".login_left_box:before").css('border-bottom-width' , login_height+"px");
and here i set dynamic border-bottom-width: 1024px in this class(set 1024px dynamic) so how can i ?
.login_left_box:before { content: ""; width: 0px; height: 0px; border-bottom: 750px solid #fff; border-left: 100px solid transparent; position: absolute; right: 0; top: 0px; background-image: url(../images/common/bg.png); background-repeat: no-repeat; background-size: cover; border-bottom-width: 1024px; }
原文:https://stackoverflow.com/questions/43062717
更新时间:2023-07-22 07:07
最满意答案
C:\ WINDOWS \ SYSTEM32 \ INETSRV \设置\的applicationHost.config
更改Web服务器的配置:
从:
< section name="ipSecurity" overrideModeDefault="Deny" / >
至:
< section name="ipSecurity" overrideModeDefault="Allow" / >
和你的web.config
< configuration > < system.webServer > < security > < ipSecurity configSource="fileWithIps.config" / > < /security > < /system.webServer > < /configuration >
c:\Windows\system32\inetsrv\config\applicationHost.config
change the configuration for the web server:
from:
< section name="ipSecurity" overrideModeDefault="Deny" / >
to:
< section name="ipSecurity" overrideModeDefault="Allow" / >
and your web.config
< configuration > < system.webServer > < security > < ipSecurity configSource="fileWithIps.config" / > < /security > < /system.webServer > < /configuration >
相关问答
更多-
如何在web.config文件中阅读appSettings部分?(How to read appSettings section in the web.config file?)[2023-12-17]
因为你正在访问一个web.config你应该可以使用 using System.Web.Configuration; WebConfigurationManager.AppSettings["configFile"] Since you're accessing a web.config you should probably use using System.Web.Configuration; WebConfigurationManager.AppSettings["configFile"] -
web.config文件缺少
(web.config file has a missing [2022-12-11]) 是单线封闭标签。 这意味着您已声明appSettings元素,并且您声明它没有内容。 在上面的示例中,您的密钥当前是 root的子节点。 更改: 至: 您必须阅读值serveride。 您可以在控制器中执行此操作并将其存储在viewbag中: ViewBag.SlideShowInterval = ConfigurationManager.AppSettings["SlideShowInterval"]; 然后在您的视图中,确保在呈现您显示的代码的@Scripts.Render() 之前呈现它,例如使用默认MVC布局附带的脚本部分: @section scripts { var slideShowInterval = '@ViewBag.Slid ...如何通过Web.config启用SessionStateTempDataProvider?(How to enable SessionStateTempDataProvider via Web.config?)[2024-04-12]
原来的问题是,与我们的本地IIS实例相比,服务器IIS上没有设置会话状态类型。 将Session State属性设置为“InProcess”修复了错误: Turned out the probelm was that the session state type was not set on the server IIS when compared with our local IIS instance. Setting the Session State property to "InProcess" f ...从app.config文件中的web.config部分获取值?(Get values from the web.config section in an app.config file?)[2023-07-13]
我想我在这里很困惑; 看起来您正在尝试测试ASP.NET是否正确使用您的自定义成员资格提供程序。 正确? 如果是这样,我99.999%肯定你不能使用MS框架进行单元测试; 您必须通过将其部署到Web服务器(或在VS中运行Cassini)并在您的登录页面中键入用户名/密码来集成测试它。 现在,我可能误解了你的要求。 如果是这样,请告诉我,我会相应地编辑我的答案。 编辑: 现在,我真的只是想测试配置文件中出现的NameValue对,以确保如果值不存在,我的默认值将被应用。 换句话说,我想尝试拉取applicat ...如何使用PowerShell将部分添加到web.config?(How can I add a section to a web.config using PowerShell?)[2022-03-20]
在PowerShell中执行此操作并不算太糟糕: $origXml = [xml]@'< ... 加密web.config文件(Encrypt the web.config file)[2022-03-30]
运行aspnet_regiis时,需要指明要加密的节点的名称。 您无法通过属性值选择要加密的内容。 基本上,改变 aspnet_regiis -pef ProvantisDataConnection 至 aspnet_regiis -pef connectionStrings When running aspnet_regiis, you need to indicate the name of the node you want to encrypt. You cannot select what y ...是否可以将web.config中的安全性部分添加到外部文件中(Is it possible to add security section in web.config to external file)[2021-12-04]
C:\ WINDOWS \ SYSTEM32 \ INETSRV \设置\的applicationHost.config 更改Web服务器的配置: 从: < section name="ipSecurity" overrideModeDefault="Deny" / > 至: < section name="ipSecurity" overrideModeDefault="Allow" / > 和你的web.config < configuration > < system.webServer > ....Net web.config将GMT偏移量添加到web.config文件中(.Net web.config add GMT offset to web.config file)[2021-12-10]
我想你需要做的是将你的DateTime值存储为UTC而不是GMT。 关于SO有很多相关问题: 夏令时和时区最佳实践 将DateTime + TimeZone转换为UTC 在数据库中将日期/时间存储为UTC I guess what you need to do is to store your DateTime values as UTC instead of GMT. There is a lot of related questions on SO: Daylight saving time and t ...当然,它也被缓存。 API ConfigurationManager.GetSection提供基础配置设置的只读视图。 Sure, it is cached as well. The API ConfigurationManager.GetSection provides read-only view of the underlying configuration settings.相关文章
更多- jquery 问题
- jQuery表格插件jqGrid(jquery.jqGrid.js)
- java中list、set和map 的区别(转)
- 简单的动态树Jquery Ztree实现
- Jquery EasyUI系列教程3
- Jquery EasyUI系列教程2
- Jquery EasyUI系列教程4
- jquery validate 插件实例教程
- jQuery的表格插件datatables学习总结(一)
- jquery可编辑表格
最新问答
更多- 在开发React应用程序时编译/转换代码(Compile/transpile code while developing React app)
- 将MultiPoint序列化为GeoJSON文件(Serialize MultiPoint to GeoJSON file)
- 将字符串截断为特定数量的字符,忽略HTML(Truncate string to certain amount of characters, ignoring HTML)
- Sqlserver监视时间的变化(Sqlserver watch for time change)
- Srcset属性 - 最大宽度问题(Srcset attribute - max-width issue)
- 如何验证数据库中是否存在记录?(How to verify existence of a record in database?)
- SQL JOIN来自不同表的行具有相同的值(SQL JOIN row from different table with the same values)
- NSTextField - 使用KVO进行输入验证?(NSTextField - Input validation with KVO?)
- 在Javascript中,如何检查数组是否有重复值?(In Javascript, how do I check if an array has duplicate values? [duplicate])
- 获取过滤器从spark数据帧中删除的行的示例(Get examples for rows that are removed by a filter from a spark dataframe)
- 如果Shape在屏幕外,是否执行Graphics2D.draw?(Is Graphics2D.draw performed if the Shape is offscreen?)
- 如果没有头文件,如何定义静态成员?(How to define a static member in case there is not header file?)
- NSLocalizedStringFromTableInBundle:没有获取key的值(NSLocalizedStringFromTableInBundle : not getting values for key)
- Google Cloud Messanger,“比预期的更多”(Google Cloud Messanger, “More acks than expected”)
- HorizontalScrollView不起作用(HorizontalScrollView not working)
- 关闭所有表单后退出应用程序(Quit Application when all forms is closed)
- 玉林哪个会计培训学校有周末上课的!
- java的。(java. Unique identifier for each visitor. How better generated?)
- 希望大家告诉我学java编程的方法?
- 在GAS嵌入式环境中通过Javascript刷新HTML文档(Refresh HTML Document via Javascript in a GAS Embedded Environment)
- 当我在另一个类中调用它时,setText不起作用(setText does not work when I call it in another class)
- 无法在静态字段中设置变量值(Can't Set variable value in Static Field)
- IE9布局错误 - 在早期的IE版本中很好(IE9 Layout Bug - fine in earlier IE versions)
- 按钮命令上的WPF新DataGrid行参数为NULL(WPF New DataGrid Row Parameter NULL on Button Command)
- Wordpress上的CSS配置
(CSS configuration on Wordpress ) - 关于OpenGL设置的问题以及在窗口中绘制掩码的问题(Questions about OpenGL Settings and drawing over a mask in a window)
- Matlab编码器fzero功能(Matlab coder fzero function)
- Autodesk Maya,C ++和OpenGL渲染引擎(Autodesk Maya, C++ and OpenGL rendering engine)
- 选择记录字段包含另一个字段的最大值(Select field of record contains max of another field)
- 可选参数在Swashbuckle.AspNetCore中导致null异常(Optional parameter causes null exception in Swashbuckle.AspNetCore)