首页 \ 问答 \ 在Internet Explorer中的边界半径(Border Radius in internet explorer)

在Internet Explorer中的边界半径(Border Radius in internet explorer)

我已经为我的css文件实现了边界半径,我也使用ie-css.htc脚本为其工作的Internet Explorer和边界半径在我的localhost中的Internet Explorer中正常工作,但当我将文件上传到Windows服务器边框半径是不是在Internet Explorer中工作


I had implemented border radius for my css file and iam also using ie-css.htc script for its working internet explorer and the border radius is working fine in internet explorer in my localhost,But when i upload the files to a windows server border radius is not working in internet explorer


原文:https://stackoverflow.com/questions/14230978
更新时间:2022-08-26 16:08

最满意答案

似乎没有内置功能,所以在找到更好的解决方案之前,我将以下方法添加到EPPlus\Drawings\ExcelDrawings.cs

public ExcelShape CloneShape(string SourceName, string TargetName)
{
    if ( _drawingNames.ContainsKey(TargetName.ToLower()))
    {
        throw new Exception("Target name already exists in the drawings collection");
    }

    if (!_drawingNames.ContainsKey(SourceName.ToLower()))
    {
        throw new Exception("Source shape does not exist in the drawings collection");
    }

    ExcelShape shape = new ExcelShape(this, this._drawingsXml,
                               (ExcelShape) this[SourceName]);
    shape.Name = TargetName;
    _drawings.Add(shape);
    _drawingNames.Add(TargetName.ToLower(), _drawings.Count - 1);
    return shape;
}

以及ExcelShape.cs这个构造函数:

internal ExcelShape(ExcelDrawings drawings, XmlDocument DrawingsXml, ExcelShape shapeSource) :
            base(drawings, shapeSource._topNode.Clone(), "xdr:sp/xdr:nvSpPr/xdr:cNvPr/@name")

{
     this.init();
     XmlNode colNode = DrawingsXml.SelectSingleNode("//xdr:wsDr", NameSpaceManager);             
     colNode.AppendChild(this._topNode);
}

Seems like there's no built-in functionality, so until I find a better solution, I added the following method to EPPlus\Drawings\ExcelDrawings.cs

public ExcelShape CloneShape(string SourceName, string TargetName)
{
    if ( _drawingNames.ContainsKey(TargetName.ToLower()))
    {
        throw new Exception("Target name already exists in the drawings collection");
    }

    if (!_drawingNames.ContainsKey(SourceName.ToLower()))
    {
        throw new Exception("Source shape does not exist in the drawings collection");
    }

    ExcelShape shape = new ExcelShape(this, this._drawingsXml,
                               (ExcelShape) this[SourceName]);
    shape.Name = TargetName;
    _drawings.Add(shape);
    _drawingNames.Add(TargetName.ToLower(), _drawings.Count - 1);
    return shape;
}

and also this constructor in ExcelShape.cs:

internal ExcelShape(ExcelDrawings drawings, XmlDocument DrawingsXml, ExcelShape shapeSource) :
            base(drawings, shapeSource._topNode.Clone(), "xdr:sp/xdr:nvSpPr/xdr:cNvPr/@name")

{
     this.init();
     XmlNode colNode = DrawingsXml.SelectSingleNode("//xdr:wsDr", NameSpaceManager);             
     colNode.AppendChild(this._topNode);
}

相关问答

更多
  • 尝试 currentWorksheet.Cells[nRowId, 3].Style; 也: currentWorksheet.Cells[nRowId, 3].Style.Fill.BackgroundColor; currentWorksheet.Cells[nRowId, 3].Style.Border; Try currentWorksheet.Cells[nRowId, 3].Style; Also: currentWorksheet.Cells[nRowId, 3].Style.Fill. ...
  • using (ExcelPackage pck = new ExcelPackage(newFile)) { ExcelWorksheet ws = pck.Workbook.Worksheets.Add("Accounts"); ws.Cells["A1"].LoadFromDataTable(dataTable, true); pck.Save(); } 这应该为你做的伎俩。 如果您的字段被定义为int,EPPlus将正确地将列转换成数字或浮点数。 using (ExcelPackage ...
  • 似乎没有内置功能,所以在找到更好的解决方案之前,我将以下方法添加到EPPlus\Drawings\ExcelDrawings.cs public ExcelShape CloneShape(string SourceName, string TargetName) { if ( _drawingNames.ContainsKey(TargetName.ToLower())) { throw new Exception("Target name already exists i ...
  • 我看到这已经得到了解答,但我想我会提供一种EPPlus方式,你当然可以这样做,但你需要手动创建sum单元格: [TestMethod] public void Row_Grouping_Test() { //http://stackoverflow.com/questions/41636336/grouping-excel-rows-with-epplus //Throw in some data var datatable = new DataTable("tblData"); ...
  • 可能是EPPlus依赖于在Open XML文件格式中标记为“可选”的某些与单元格地址相关的属性,但是默认情况下SpreadsheetGear不会写出,以减小文件的大小。 如果您已访问生成这些文件的SpreadsheetGear应用程序,则可以尝试通过设置IWorkbookSet将其更改为将这些可选属性写出为文件格式。 在将文件保存到磁盘之前,对字符串OleDbOpenXmlWorkaround 实验属性。 例如: SpreadsheetGear.IWorkbookSet workbookSet = Spre ...
  • 这是一个网络应用程序 啊,所以主要问题是......你知道,即使EPPlus有一种打印方法,它也无济于事,因为它会尝试在服务器端触发打印对话框,但你需要发送通过互联网向客户提交。 所以我担心答案是肯定的,客户肯定要下载文件以便能够打印它。 此外,xlsx不能在Web浏览器中轻松打开(例如与pdf相比),因此以某种方式在客户端PC上触发打印机对话框的解决方案将有点困难。 由于安全问题,C#无法通过互联网触发任何内容,我不确定javascript是否有足够的权限打开Excel文件的应用程序并启动打印过程。 也许 ...
  • 这是由于excel自身产生的难以理解的内容。 当我使用EPPlus(4.1.0)的新版本时,我没有遇到任何这样的问题。 It was due to unreadable content generated in excel it self. When I used new release of EPPlus (4.1.0) I have not get any problem like this.
  • 实际上我找到了解决这个问题的方法。 我将此代码添加到ExcelDrawings.cs文件中: /// /// Add a new shape to the worksheet /// /// Name /// Source shape /// The shape object
  • 假设book是您的工作簿,而工作sheet是您的工作表。 试试这段代码 var cell = sheet.Cells["C2"]; // Cell or Range you want to name sheet.Names.Add("The_Name_Here", cell); 该名称将添加到工作表中。 如果要访问整个工作簿中的名称,请尝试: var cell = sheet.Cells["C2"]; // Cell or Range you want to name book.Names.Add("Th ...
  • 我终于找到了一个使用内部xml数据的解决方案,似乎excel使用一个称为EMU度量单位, equal to 1/9525 pixel 。 解决方案如下 public static Rectangle GetDimensions(string shapeName, ExcelWorksheet sheet) { const int EMU = 9525; var shapeBaseNodexPath = string.Format("//*[@name='{0}']", shapeName); ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)